/**
 * Copyright (C) 2013 ChangSha XNS Science & Technology CO,.LTD. All rights reserved.
 * XNS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/**
 * Copyright (C) 2002-2013 WUZEWEN. All rights reserved.
 * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 * This software is the confidential and proprietary information of
 * WuZeven, Personal. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with WuZeven.
 */

package javax.swing.plaf.synth;

import java.awt.FontMetrics;

/**
 * <p>根据java的安全机制，这个类必须拷贝编译之后的class到rt.jar包才能生效。</p>
 * @author Zeven/wzw on May 12, 2013
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @since	JDK5
 */

public class PlainTabbedPaneUI extends javax.swing.plaf.synth.SynthTabbedPaneUI {

	private int widthOffset=0;
	private int heightOffset=0;
	public PlainTabbedPaneUI(int widthOffset, int heightOffset) {
		super(); 
		this.widthOffset = widthOffset;
		this.heightOffset = heightOffset;
	}


	/**
	 * <p>java方法的说明...</p>
	 * @author Zeven on May 12, 2013
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	

	protected int calculateTabWidth(int tabPlacement, int tabIndex,
			FontMetrics metrics) {
		return super.calculateTabWidth(tabPlacement, tabIndex, metrics) + this.widthOffset;
	}

	protected int calculateTabHeight(int tabPlacement, int tabIndex,
			int fontHeight) {
		return super.calculateTabHeight(tabPlacement, tabIndex, fontHeight) + this.heightOffset;
	} 

}
